//
//  ZDBSettingTableViewCell.m
//  ZDB
//
//  Created by 微笑吧阳光 on 2020/3/28.
//  Copyright © 2020 ZDB. All rights reserved.
//

#import "ZDBSettingTableViewCell.h"

@implementation ZDBSettingTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.headerImage.hidden = YES;
    self.subLab.hidden = YES;
}
-(void)setDataDicc:(NSDictionary *)dataDicc{
    
    _dataDicc = dataDicc;
    
    
    NSInteger type = [dataDicc jsonInteger:@"type"];
    self.typelab.text = [dataDicc jsonString:@"title"];
    
    switch (type) {
        case 1:
        {
            self.headerImage.hidden = YES;
            self.subLab.hidden = YES;
        }
            break;
        case 2:
            {
                self.headerImage.hidden = YES;
                self.subLab.hidden = NO;
            }
            break;
        case 3:
            {
                self.headerImage.hidden = NO;
                self.subLab.hidden = YES;
                
            }
                break;
        default:
            break;
    }
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
